const {ccclass, property} = cc._decorator

import AppEnv from "./AppEnv"
import AppConfig from "./AppConfig"

import {SceneTransition} from "common"

@ccclass
export default class App extends cc.Component
{
    static instance:App = null;

    appEnv:AppEnv = null;
    appConfig:AppConfig = null;

    sceneTransition:SceneTransition = null;

    onLoad()
    {
        cc.log("App|onLoad");

        App.instance = this;
        this.appEnv = this.node.getComponent("AppEnv");
        this.appConfig = this.node.getComponent("AppConfig");
        this.sceneTransition = this.node.getComponent("SceneTransition");
    }
}